#ifndef CALLWIDGET_H
#define CALLWIDGET_H

#include <QWidget>
#include <QPixmap>

namespace Ui {
class CallWidget;
}

class CallWidget : public QWidget
{
    Q_OBJECT

public:
    explicit CallWidget(QWidget *parent = 0);
    ~CallWidget();
    void setBackgroundImage(QPixmap &pixmap);
    QWidget *getDisplay();
    QWidget *getDisplayPreview();

private slots:
    void on_btnHungup_clicked();

    void on_btnOpen_clicked();

    void on_btnRecord_clicked();


    void on_btnTakePhoto_clicked();

private:
    Ui::CallWidget *ui;
    QPixmap mBackPixmap;
protected:
    void resizeEvent(QResizeEvent *event);
    void closeEvent(QCloseEvent *event);
    bool isRecording;
};

#endif // CALLWIDGET_H
